Reverse Proxy Settings
2014/06/08 |
Configure Squid as a Reverse Proxy server.
|
|
[1] | Configure Squid |
root@prox:~#
vi /etc/squid3/squid.conf # near line 1058: add ( allow all http access ) http_access allow all
# line 1460: specify http server's IP for backend http_port 80 accel defaultsite=www.srv.world
# line 2596: add cache_peer 10.0.0.31 parent 80 0 no-query originserver
# line 2736: add (memory cache size) cache_mem 256 MB
# line 3001: add # number means ⇒ [disk cache size] [number of directories on top level] [number of directories on 2nd level] cache_dir ufs /var/spool/squid3 256 16 256
# line 4761: add (define hostname) visible_hostname prox.srv.world
initctl restart squid3 squid3 start/running, process 2708 |
[2] | Change DNS or Router's settings if need, and make it listen http requests on Squid server. It's OK if backend http server responds like follows. |